package com.lx.camera2.ui;

import android.content.Context;
import android.os.Build;
import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ArrayAdapter;
import android.widget.ImageView;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.annotation.RequiresApi;
import androidx.fragment.app.Fragment;
import androidx.fragment.app.ListFragment;

import com.lx.camera2.R;

public class AwbFragment extends Fragment {

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {
        View view = inflater.inflate(R.layout.awb_fragment, null);
        return view;
    }

    @RequiresApi(api = Build.VERSION_CODES.LOLLIPOP)
    @Override
    public void onViewCreated(@NonNull View view, @Nullable Bundle savedInstanceState) {
        super.onViewCreated(view, savedInstanceState);
        ImageView view1 = view.findViewById(R.id.awb1);
        ImageView view2 = view.findViewById(R.id.awb2);
        ImageView view3 = view.findViewById(R.id.awb3);
        view1.setBackground(getActivity().getDrawable(R.drawable.awb1));
        view2.setBackground(getActivity().getDrawable(R.drawable.awb2));
        view3.setBackground(getActivity().getDrawable(R.drawable.awb3));
    }

}
